<?php
if(isset($_GET['i']) && !empty($_GET['i']))
{
  $i = trim($_GET['i']);
  $i = urldecode($i);

  $t = '';
  if(isset($_GET['t']) &&  !empty($_GET['t']))
  {
    $t = trim($_GET['t']);
    $t = urldecode($t);
    $t = strip_tags($t);
   
  }

  if(strstr($i,'instagram.com') && strstr($i,'.jpg'))
  {
      $tmp = substr($i,0,strlen($i)-5).'6.jpg';
      $i = $tmp;
      ?>
      <div style="width:100%; text-align:center;">
      <img src="<?php echo $i; ?>" borde=0 align="middle" />
      <div style="padding:5px; font-size:12px; text-align:center; width:90%;"><?php echo $t;?></div>
      </div>
      <?php
  }

}
?>